import request from '@/utils/request'; 
import {LoginParamsType} from '@/interface/index'
 
export async function userLogin(params: LoginParamsType) {
  return request('/api2/teacherLogin/mobileLogin', {
    method: 'POST',
    data:{
      'equipment' :1,
      'mobile':'19883210730',
      'password':'123456'
    }  
  });
}
 

export async function getCaptcha(mobile: string) {
  return request('/api2//teacherLogin/sendSms', {
    method: 'POST',
    data:{ 
      'mobile':'19883210730',
      'type':'2'
    }  
  });
}
export async function CaptchaLogin(values) {
  return request('/api2//teacherLogin/teacherUserSmsLogin', {
    method: 'POST',
    data:{ 
      'mobile':values.mobile,
      'equipment' :1,
      'code':values.code
    }  
  });
}

// 线上接口登录
// export async function userLogin (data:any){
//   return request('/teacherLogin/mobileLogin',{
//     method:"POST",
//     data
//   });
// }
